/**
 * @description 导出自定义配置
 **/
const config = {
  layout: "vertical",

  // 资源使用状态
  usingStatus: [
    { key: "free", value: "空闲中" },
    { key: "apply", value: "申请中" },
    { key: "assign", value: "分配中" },
    { key: "using", value: "使用中" },
    { key: "maintenting", value: "维护中" },
    { key: "outing", value: "已下架" },
  ],

  // 资源申请状态
  applyStatus: {
    waitSubmit: "待提交",
    auditing: "审批中",
    auditFail: "审批未通过",
    assigning: "资源分配中",
    using: "资源使用中",
    returning: "资源归还中",
    free: "资源已释放",
  },
  // { key: "waitSubmit", value: "待提交" },
  // { key: "auditing", value: "审批中" },
  // { key: "auditFail", value: "审批未通过" },
  // { key: "assigning", value: "资源分配中" },
  // { key: "using", value: "资源使用中" },
  // { key: "returning", value: "资源归还中" },
  // { key: "free", value: "资源已释放" },
  // 实体固定字段列表
  constantFieldList: [
    {
      fieldName: "resourceTypeEntityId",
      fieldTitle: "实体id",
      fieldType: "int",
      enumGroupName: "",
      enumItemList: [],
      isDynamics: false,
      tableName: "resource_type_entity",
    },
    {
      fieldName: "resourceTypeEntityDescription",
      fieldTitle: "实体描述",
      fieldType: "string",
      enumGroupName: "",
      enumItemList: [],
      isDynamics: false,
      tableName: "resource_type_entity",
    },
    {
      fieldName: "status",
      fieldTitle: "实体状态",
      fieldType: "enum",
      enumGroupName: "usingStatus",
      enumItemList: [],
      isDynamics: false,
      tableName: "resource_type_entity",
    },
    {
      fieldName: "user",
      fieldTitle: "使用人",
      fieldType: "enum",
      enumGroupName: "",
      enumItemList: [],
      isDynamics: true,
      tableName: "user_entity",
    },
    {
      fieldName: "createdBy",
      fieldTitle: "创建人",
      fieldType: "enum",
      enumGroupName: "",
      enumItemList: [],
      isDynamics: false,
      tableName: "resource_type_entity",
    },
    {
      fieldName: "lastEditedBy",
      fieldTitle: "修改人",
      fieldType: "enum",
      enumGroupName: "",
      enumItemList: [],
      isDynamics: false,
      tableName: "resource_type_entity",
    },
    {
      fieldName: "mayApply",
      fieldTitle: "是否可申请",
      fieldType: "enum",
      enumGroupName: "",
      enumItemList: [],
      isDynamics: false,
      tableName: "resource_type_entity",
    },
  ],
};
module.exports = config;
